import {createRouter,createWebHashHistory} from 'vue-router';

const routes = [
    {
        path:'/home',
        name:'home',
        component:()=>import('../views/Home.vue')
    },
    {
        path:'/about',
        name:'about',
        component:()=>import('../views/About.vue')
    },
    {
        path:'/',
        redirect: {
            name:'home'
        }
    }
]

const router = createRouter({
    history:createWebHashHistory(),
    routes
})
export default router;